#! /usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Teny

from django.urls import path
from django01 import views
urlpatterns = [
    path('test/', views.test),
    path('admin/', views.admin_list),
    path('admin/add/', views.admin_add),
    path('admin/<int:nid>/edit/', views.admin_edit),
    path('admin/<int:nid>/delete/', views.admin_delete),
    path('admin/<int:nid>/reset/', views.admin_reset),

    path('login/', views.login),
    path('logout/', views.logout),
    path('image/code/', views.image_code),

    # 任务列表
    path('task/', views.task_list),
    path('task/ajax/', views.task_ajax),
    path('task/add/', views.task_add),
]